{% extends 'encyclopedia/base.html' %}

{% block title %}删除相机 - 相机百科{% endblock %}

{% block content %}
    <div class="card">
        <div class="card-header bg-danger text-white">
            <h2 class="card-title">确认删除相机</h2>
        </div>
        <div class="card-body">
            <p class="lead">您确定要删除相机词条 <strong>{{ camera.title }}</strong> 吗？</p>
            <p class="text-danger mb-4">此操作无法撤销，删除后数据将无法恢复。</p>
            
            <div class="mb-4">
                <h5>相机信息</h5>
                <ul class="list-group">
                    <li class="list-group-item">
                        <strong>名称</strong>: {{ camera.title }}
                    </li>
                    <li class="list-group-item">
                        <strong>品牌</strong>: {{ camera.brand }}
                    </li>
                    <li class="list-group-item">
                        <strong>分类</strong>: {{ camera.category.name }}
                    </li>
                </ul>
            </div>
            
            <form method="post">
                {% csrf_token %}
                <div class="d-flex justify-content-between">
                    <button type="submit" class="btn btn-danger">确认删除</button>
                    <a href="{% url 'encyclopedia:camera_detail' camera.id %}" class="btn btn-secondary">取消</a>
                </div>
            </form>
        </div>
    </div>
{% endblock %}